home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Best of MacTutor - S…e Code for Volumes 1 to 5
/
The Best of MacTutor - Source Code for Volume 1-5 (Wayzata Technology)(6031)(1990).bin
/
Source Code
/
#49 (Oct 89)
/
Driver Code
/
test_drvr.r
< prev
next >
Wrap
Text File
|
1988-01-13
|
3KB
|
208 lines
#include "Types.r"
resource 'DITL' (128) {
{ /* array DITLarray: 14 elements */
/* [1] */
{176, 81, 196, 160},
Button {
enabled,
"Do It"
},
/* [2] */
{176, 230, 196, 309},
Button {
enabled,
"Quit"
},
/* [3] */
{10, 10, 26, 82},
RadioButton {
enabled,
"Status"
},
/* [4] */
{30, 10, 46, 60},
RadioButton {
enabled,
"Rate"
},
/* [5] */
{50, 10, 66, 81},
RadioButton {
enabled,
"Volume"
},
/* [6] */
{70, 10, 85, 87},
RadioButton {
enabled,
"Infused"
},
/* [7] */
{90, 10, 106, 90},
RadioButton {
enabled,
"Initialize"
},
/* [8] */
{120, 10, 136, 60},
RadioButton {
enabled,
"Ask"
},
/* [9] */
{140, 10, 156, 60},
RadioButton {
enabled,
"Set"
},
/* [10] */
{49, 95, 65, 145},
EditText {
disabled,
""
},
/* [11] */
{39, 159, 77, 345},
StaticText {
disabled,
""
},
/* [12] */
{17, 158, 36, 239},
StaticText {
disabled,
"Response:"
},
/* [13] */
{33, 156, 37, 346},
Picture {
disabled,
130
},
/* [14] */
{110, 12, 113, 52},
Picture {
disabled,
130
}
}
};
resource 'DITL' (-16000) {
{ /* array DITLarray: 2 elements */
/* [1] */
{103, 17, 126, 86},
Button {
enabled,
"OK"
},
/* [2] */
{10, 82, 85, 266},
StaticText {
disabled,
"Too many drivers are trying to access th"
"e event filter. Tell Jeff, only Jeff can"
" help. So tell him, OK?"
}
}
};
resource 'DLOG' (128, "Pump Driver") {
{64, 114, 300, 468},
dBoxProc,
visible,
noGoAway,
0x0,
128,
"Pump Driver"
};
resource 'PICT' (130) {
42,
{7, 7, 11, 85},
$"1101 A000 8201 000A 0007 0007 000D 0055"
$"0700 0200 0222 0009 0009 4800 A000 83FF"
};
resource 'STR ' (219) {
"Illegal Request "
};
resource 'STR ' (212) {
"Status was set "
};
resource 'STR ' (213) {
"Rate was set"
};
resource 'STR ' (214) {
"Volume was set "
};
resource 'STR ' (215) {
"Infused was set "
};
resource 'STR ' (216) {
"Pump was initialized "
};
resource 'STR ' (217) {
"Bad Problem "
};
resource 'STR ' (218) {
"Status is normal "
};
resource 'STR ' (200) {
"Status is abnormal: "
};
resource 'STR ' (201) {
"Rate is "
};
resource 'STR ' (202) {
"Volume is "
};
resource 'STR ' (203) {
"Infused is "
};
resource 'STR ' (204) {
"Invalid request "
};
resource 'STR ' (205) {
"Read Timed out "
};
resource 'STR ' (206) {
"Write Timed out "
};
resource 'STR ' (207) {
"Too many received characters to decode "
" "
};
resource 'STR ' (208) {
"The pump sent an decodeable number "
};
resource 'STR ' (209) {
"The pump sent an unknown action "
};
resource 'STR ' (210) {
"The pump sent an unknown request "
};
resource 'STR ' (211) {
"The pump is unhappy with the last comman"
"d "
};